package com.wang.designpattern.responsibilitychain;

public class AttendanceConstant {

    enum ExceptionType {
        NORMAL("AT06", "正常"),
        LATE("AT02", "迟到"),
        LEAVE_EARLY("AT03", "早退"),
        ABSENT("AT05", "旷工"),
        ;

        // 异常类型编码
        private String exceptionType;

        // 异常类型
        private String exceptionTypeStr;

        ExceptionType(String exceptionType, String exceptionTypeStr) {
            this.exceptionType = exceptionType;
            this.exceptionTypeStr = exceptionTypeStr;
        }

        public String getExceptionType() {
            return exceptionType;
        }

        public void setExceptionType(String exceptionType) {
            this.exceptionType = exceptionType;
        }

        public String getExceptionTypeStr() {
            return exceptionTypeStr;
        }

        public void setExceptionTypeStr(String exceptionTypeStr) {
            this.exceptionTypeStr = exceptionTypeStr;
        }
    }
}
